<%--
    Document   : retasar1
    Created on : 14/06/2009, 01:38:54 PM
    Author     : PC
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Mantenimiento de Garantía</title>
        </head>
        <body>
            <h1>Orden de Liberación</h1>
            <h:form>
                <t:panelGrid columns="2" >
                  <h:outputLabel value="Cliente:" for="txtcliente"/>
                    <h:inputText id="txtcliente" value="algo" >
                        <f:validateLength maximum="20" minimum="5" />
                    </h:inputText>
                    <h:outputLabel value="Motivo de Liberación:" for="txtmotivo"/>
                    <h:selectManyListbox id="txtmotivo" value="algo" >
                        <f:selectItem itemLabel="Otros motivos" itemValue="1" />
                        <f:selectItem itemLabel="Cancelacion crédito" itemValue="2" />
                    </h:selectManyListbox>
                  
                </t:panelGrid>
            <t:panelGrid columns="1">
                   <t:panelGroup>
                <t:dataTable id="tblOrden"
                             value="Orden"
                             var="item"
                             width="70%"
                             preserveDataModel="true"
                             varDetailToggler="detailToggler"
                             border="1"
                             columnClasses=",,,,">
                    <h:column>
                        <f:facet name="header" ><h:outputText value="Documento" /></f:facet>
                        <h:outputText value="#{item.nombre}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header" ><h:outputText value="Nro" /></f:facet>
                        <h:outputText value="#{item.apellidos}" />
                    </h:column>
                    <h:column>
                        <f:facet name="header" ><h:outputText value="Saldo" /></f:facet>
                        <h:outputText value="#{item.direccion}" />
                    </h:column>

                </t:dataTable>
            </t:panelGroup>
            </t:panelGrid>
           
            <t:panelGrid  columns="2">
                  <h:commandButton id = "btnEnviar" value="Enviar" />
                  <h:commandButton id = "btnCancelar" value="Cancelar" />
            </t:panelGrid>

            </h:form>
        </body>
    </html>
</f:view>